/**
 *  用户 咨询
 * @author litao
 */
import { get, post, uploadFile } from './request';

const show = { loading: true, success: false };

// 专家 列表
export const expertPage = (params: object) => get('/regressive/emp/empadviceexpert/page', params, show);

// 专家 详情
export const expertDetail = (params: object) => get('/regressive/emp/empadviceexpert/detail', params, show);

// 专家 编辑
export const expertEdit = (params: object) => post('/regressive/emp/empadviceexpert/edit', params, show);


// 咨询预约 列表
export const consultPage = (params: object) => get('/regressive/emp/empconsultationreservation/page', params);

// 咨询预约 添加
export const consultAdd = (params: object) => post('/regressive/emp/empconsultationreservation/add', params, show);

// 咨询预约 编辑
export const consultEdit = (params: object) => post('/regressive/emp/empconsultationreservation/edit', params, show);

// 咨询预约 删除
export const consultDelete = (params: object) => post('/regressive/emp/empconsultationreservation/delete', params, show);

// 咨询预约 详情
export const consultDetail = (params: object) => get('/regressive/emp/empconsultationreservation/queryConsultationDetail', params, { loading: true, success: false });

// 咨询预约 附件上传
export const consultUpload = (params : object) => uploadFile('/regressive/emp/empconsultationreservation/attachmentUpload', params);

// 咨询预约 附件删除
export const consultFileDelete = (params: object) => get('/regressive/emp/empconsultationreservation/attachmentDeleteById', params, show);

// 咨询预约 专家查询 列表
export const consultExpertPage = (params: object) => get('/regressive/emp/empconsultationreservation/pageByExpertId', params);

// 咨询预约 专家 拒绝 同意
export const consultExpertOperate = (params: object) => get('/regressive/emp/empconsultationreservation/expertAcceptedOrRejected', params, show);
